#include <QCoreApplication>
#include <iostream>
using namespace std;
int main()
{
 float A,B,C;
 cout<<"A=";
 cin>>A;
 cout<<"\nB=";
 cin>>B;
 cout<<"\nC=";
 cin>>C;
 if ((A<B&&B<C)||(C<B&&B<A))
     cout<<"T";
 else
     cout<<"F";
 return 0;
}
